package com.example.service.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName t_evaluation
 */
@TableName(value ="t_evaluation")
@Data
@Schema(description = "评教信息")
public class Evaluation implements Serializable {
    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "学生id")
    private Integer studentId;

    @Schema(description = "教师id")
    private Integer teacherId;

    @Schema(description = "课程id")
    private Integer courseId;

    @Schema(description = "分数")
    private Integer score;

    @TableField(exist = false)
    @Schema(description = "平均分")
    private Double avgScore;

    @Serial
    private static final long serialVersionUID = 1L;
}